package com.kefu.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.kefu.model.ClientUser;

public interface ClientUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ClientUser record);

    int insertSelective(ClientUser record);

    ClientUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ClientUser record);

    int updateByPrimaryKey(ClientUser record);
    @Select("select * from ClientUser where uuid=#{uuid}")
	ClientUser selectByUserUUID(@Param("uuid")String uuid);
    @Select("select count(1) from ClientUser where uuid=#{uuid}")
	int countByUid(@Param("uuid")String uid);
    @Update("update ClientUser set state=#{state} where uuid = #{uuid}")
	void updateStateByUid(@Param("uuid")String uid,@Param("state")String state);
}